home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko2 / nsIViewSourceChannel.h
C/C++ Source or Header  |  2006-05-08  |  3KB  |  108 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIViewSourceChannel.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIViewSourceChannel_h__
  6. #define __gen_nsIViewSourceChannel_h__
  7.  
  8.  
  9. #ifndef __gen_nsIChannel_h__
  10. #include "nsIChannel.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIViewSourceChannel */
  19. #define NS_IVIEWSOURCECHANNEL_IID_STR "8b77d6e2-2ae9-11d5-be57-000064657374"
  20.  
  21. #define NS_IVIEWSOURCECHANNEL_IID \
  22.   {0x8b77d6e2, 0x2ae9, 0x11d5, \
  23.     { 0xbe, 0x57, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}
  24.  
  25. class NS_NO_VTABLE nsIViewSourceChannel : public nsIChannel {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IVIEWSOURCECHANNEL_IID)
  29.  
  30.   /**
  31.      * The actual (MIME) content type of the data.
  32.      *
  33.      * nsIViewSourceChannel returns a content type of
  34.      * "application/x-view-source" if you ask it for the contentType
  35.      * attribute.
  36.      *
  37.      * However, callers interested in finding out or setting the
  38.      * actual content type can utilize this attribute.
  39.      */
  40.   /* attribute ACString originalContentType; */
  41.   NS_IMETHOD GetOriginalContentType(nsACString & aOriginalContentType) = 0;
  42.   NS_IMETHOD SetOriginalContentType(const nsACString & aOriginalContentType) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSIVIEWSOURCECHANNEL \
  48.   NS_IMETHOD GetOriginalContentType(nsACString & aOriginalContentType); \
  49.   NS_IMETHOD SetOriginalContentType(const nsACString & aOriginalContentType); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSIVIEWSOURCECHANNEL(_to) \
  53.   NS_IMETHOD GetOriginalContentType(nsACString & aOriginalContentType) { return _to GetOriginalContentType(aOriginalContentType); } \
  54.   NS_IMETHOD SetOriginalContentType(const nsACString & aOriginalContentType) { return _to SetOriginalContentType(aOriginalContentType); } 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSIVIEWSOURCECHANNEL(_to) \
  58.   NS_IMETHOD GetOriginalContentType(nsACString & aOriginalContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginalContentType(aOriginalContentType); } \
  59.   NS_IMETHOD SetOriginalContentType(const nsACString & aOriginalContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOriginalContentType(aOriginalContentType); } 
  60.  
  61. #if 0
  62. /* Use the code below as a template for the implementation class for this interface. */
  63.  
  64. /* Header file */
  65. class nsViewSourceChannel : public nsIViewSourceChannel
  66. {
  67. public:
  68.   NS_DECL_ISUPPORTS
  69.   NS_DECL_NSIVIEWSOURCECHANNEL
  70.  
  71.   nsViewSourceChannel();
  72.  
  73. private:
  74.   ~nsViewSourceChannel();
  75.  
  76. protected:
  77.   /* additional members */
  78. };
  79.  
  80. /* Implementation file */
  81. NS_IMPL_ISUPPORTS1(nsViewSourceChannel, nsIViewSourceChannel)
  82.  
  83. nsViewSourceChannel::nsViewSourceChannel()
  84. {
  85.   /* member initializers and constructor code */
  86. }
  87.  
  88. nsViewSourceChannel::~nsViewSourceChannel()
  89. {
  90.   /* destructor code */
  91. }
  92.  
  93. /* attribute ACString originalContentType; */
  94. NS_IMETHODIMP nsViewSourceChannel::GetOriginalContentType(nsACString & aOriginalContentType)
  95. {
  96.     return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98. NS_IMETHODIMP nsViewSourceChannel::SetOriginalContentType(const nsACString & aOriginalContentType)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* End of implementation class template. */
  104. #endif
  105.  
  106.  
  107. #endif /* __gen_nsIViewSourceChannel_h__ */
  108.